<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Portal extends CI_Controller {
        
        public function index() {
            /*
             * $data['styles'] = array('crm/person');
             * $data['styles'] = array('crm/partner');
             * $data['styles'] = array('crm/record');
             */
            
            // Security //
            if($this->session->userdata('isLoggedIn')) {
                $data['styles'] = array('crm/portal');
                $data['scripts'] = array('selectOverview');
                $this->load->view('crm/portal', $data);                
            }
            else {
                redirect('login');
            }
	}
}